<?php /*a:1:{s:66:"/www/wwwroot/mod1.idhx.top/tp/view/admin/naire/topic_log_info.html";i:1711262394;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>menu</title>
    <link rel="stylesheet" href="/layuimini/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuimini/css/public.css" media="all">
    <style>
        #naire_title {
            font-weight: bolder;
        }

        .blue-background-class {
            background-color: #C8EBFB !important;
        }

        /* .sortItem:hover {
            border: 1px dashed red;
        } */

        .layui-btn:not(.layui-btn-lg):not(.layui-btn-sm):not(.layui-btn-xs) {
            height: 34px;
            line-height: 34px;
            padding: 0 8px;
        }

        /* .legendHower:hover {
            border: 1px dashed red;
        } */

        /* .oneans:hover {
            background: #eee;
        } */

        /* .oneans:hover>.deloneans {
            display: block;
        } */

        .oneans {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* .deloneans {
            transition: transform 0.3s;
            cursor: pointer;
            display: none;
        } */

        /* .oneans .layui-form-radio>div:hover {
            border: 1px dashed red;
        }

        .oneans .layui-form-checkbox>span:hover {
            border: 1px dashed red !important;
        } */

        .oneans .layui-form-checkbox {
            /* line-height: 28px !important; */
            margin: 8px 10px 6px 0;
        }

        .layui-form-radio {
            white-space: normal;
            /* 允许文本换行 */
            word-break: break-all;
            /* 在任意字符上换行 */
        }

        .deloneans:hover {
            transform: scale(1.4);
        }

        .delTopicbtn {
            display: none;
        }

        /* 矩阵答案，问题 */
        .juansbox div,
        .jutopicbox div {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* 矩阵答案显示删除 */
        /* .juansbox div:hover>.deljuans {
            visibility: visible;
        } */

        /* 矩阵问题显示删除 */
        /* .jutopicbox div:hover>.deljutopic {
            visibility: visible;
        } */

        /* 矩阵问题或答案显示修改 */
        /* .juans:hover,
        .jutopic:hover {
            border: 1px dashed red;

        } */

        /* 矩阵删除默认隐藏 */
        .deljuans,
        .deljutopic {
            visibility: hidden;
        }

        /* 矩阵删除颜色 */
        .deljuans:hover,
        .deljutopic:hover {
            color: #FF5722;
        }

        /* 链接 */
        .logiconeans {
            display: none;
            transition: transform 0.3s;
            cursor: pointer;
        }

        .logiconeans:hover {
            transform: scale(1.4);
        }

        /* 强制隐藏 */
        .hideMax {
            display: none !important;
        }

        .layui-form-selectup dl {
            top: 42px !important;
            bottom: unset !important;
        }
    </style>
</head>

<body>
    <form class="layui-form">
        <div class="layui-row" id="content">
            <div class="layui-col-xs12">
                <div class="layuimini-container">
                    <div class="layuimini-main" id="naireContent">

                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                            <legend class="legendHower topic" id="naire_title" data-id="<?php echo htmlentities($one['id']); ?>" data-type="1">
                                <?php echo htmlentities($one['naire_title']); ?></legend>
                            <input type="hidden" id="oneid" value="<?php echo htmlentities($one['id']); ?>">
                        </fieldset>

                        <!-- 回显 -->
                        <?php if(is_array($topic_list) || $topic_list instanceof \think\Collection || $topic_list instanceof \think\Paginator): $i = 0; $__LIST__ = $topic_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['hidden']==0 && !$vo['noshow']): ?>
                        <!-- 单选 -->
                        <?php if($vo['topic_type']==1): ?>
                        <fieldset class="layui-elem-field sortItem" data-type="<?php echo htmlentities($vo['topic_type']); ?>">
                            <legend class="legendHower topic topic_<?php echo htmlentities($vo['id']); ?>" data-id="<?php echo htmlentities($vo['id']); ?>" data-type="2">
                                <?php echo isset($vo['title']) ? htmlentities($vo['title']) : '点击修改名称'; if($vo['isb']==1): ?><span style="color: red;">*</span><?php endif; ?></legend>
                            <div class="layui-field-box" id="sortAns_<?php echo htmlentities($vo['id']); ?>">
                                <?php if(count($vo['child'])>0): if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneans): $mod = ($i % 2 );++$i;?>
                                <div class="oneans">
                                    <input type="radio" data-id="<?php echo htmlentities($oneans['id']); ?>" <?php if($oneans['checked']): ?>checked
                                        <?php else: ?>disabled <?php endif; ?> data-topic-jz-id="0" name="ans_<?php echo htmlentities($vo['id']); ?>"
                                        lay-filter="ansRadio" value="<?php echo htmlentities($oneans['content']); ?>"
                                        title="<?php echo isset($oneans['content']) ? htmlentities($oneans['content']) : '点击修改选项内容'; ?>">

                                    <!-- <i class="logiconeans layui-icon layui-icon-link" style="color: #270dec;"></i> -->
                                    <!-- <i class="deloneans layui-icon layui-icon-reduce-circle"
                                        style="color: #FF5722;"></i> -->
                                </div>
                                <!-- 单项输入框 -->
                                <?php if(isset($oneans['inputans'])): if(is_array($oneans['inputans']) || $oneans['inputans'] instanceof \think\Collection || $oneans['inputans'] instanceof \think\Paginator): $i = 0; $__LIST__ = $oneans['inputans'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$inputans): $mod = ($i % 2 );++$i;if($inputans): ?>
                                <div style="margin-left: 30px;">
                                    <input type="text" placeholder="<?php echo htmlentities($inputans['name']); ?>" class="layui-input"
                                        value="<?php echo htmlentities($inputans['value']); ?>" disabled>
                                </div>
                                <?php endif; ?>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                <?php endif; ?>
                                <!-- 单项输入框结束 -->
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                <!-- 多行文本 -->
                                <?php if(isset($vo['requ']) && $vo['requ']): ?>
                                <div><?php echo htmlentities($vo['requ_str']); ?></div>
                                <textarea class="layui-textarea" disabled><?php echo htmlentities($vo['ansstr']); ?></textarea>
                                <?php endif; ?>
                                <!-- 多行文本结束 -->
                                <?php endif; ?>
                            </div>
                            <div class="layui-field-box" style="justify-content: space-between;display: flex;">
                                <div>
                                    <span class="layui-badge layui-bg-gray">单选</span>
                                    <!-- <button type="button"
                                        class="layui-btn layui-btn-primary layui-btn-radius layui-border-green layui-btn-xs"
                                        lay-submit lay-filter="addTopicAns">新增单选</button> -->
                                </div>
                                <!-- <div>
                                    <input type="checkbox" name="isb_<?php echo htmlentities($vo['id']); ?>" <?php if($vo['isb']==1): ?> checked=""
                                        <?php endif; ?> title="必填" lay-filter="isb">
                                    <button type="button" class="layui-btn layui-btn-danger delTopicbtn" lay-submit
                                        lay-filter="delTopic">删除</button>

                                </div> -->
                            </div>

                        </fieldset>
                        <?php endif; if($vo['topic_type']==2): ?>
                        <fieldset class="layui-elem-field sortItem" data-type="<?php echo htmlentities($vo['topic_type']); ?>">
                            <legend class="legendHower topic topic_<?php echo htmlentities($vo['id']); ?>" data-id="<?php echo htmlentities($vo['id']); ?>" data-type="2">
                                <?php echo isset($vo['title']) ? htmlentities($vo['title']) : '点击修改名称'; if($vo['isb']==1): ?><span style="color: red;">*</span><?php endif; ?></legend>
                            <div class="layui-field-box" id="sortAns_<?php echo htmlentities($vo['id']); ?>">
                                <?php if(count($vo['child'])>0): if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneans): $mod = ($i % 2 );++$i;?>
                                <div class="oneans">
                                    <input type="checkbox" data-id="<?php echo htmlentities($oneans['id']); ?>" <?php if(isset($oneans['checked']) &&
                                        $oneans['checked']): ?>checked <?php else: ?>disabled <?php endif; ?> data-topic-jz-id="0"
                                        name="ans_<?php echo htmlentities($vo['id']); ?>" lay-skin="primary" lay-filter="ansCheckbox"
                                        value="<?php echo htmlentities($oneans['content']); ?>" title="<?php echo isset($oneans['content']) ? htmlentities($oneans['content']) : '点击修改选项内容'; ?>">
                                    <!-- <i class="logiconeans layui-icon layui-icon-link" style="color: #270dec;"></i>
                                    <i class="deloneans layui-icon layui-icon-reduce-circle"
                                        style="color: #FF5722;"></i> -->
                                </div>
                                <!-- 单项输入框 -->
                                <?php if(isset($oneans['inputans'])): if(is_array($oneans['inputans']) || $oneans['inputans'] instanceof \think\Collection || $oneans['inputans'] instanceof \think\Paginator): $i = 0; $__LIST__ = $oneans['inputans'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$inputans): $mod = ($i % 2 );++$i;if($inputans): ?>
                                <div style="margin-left: 30px;">
                                    <input type="text" placeholder="<?php echo htmlentities($inputans['name']); ?>" class="layui-input"
                                        value="<?php echo htmlentities($inputans['value']); ?>" disabled>
                                </div>
                                <?php endif; ?>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                <?php endif; ?>
                                <!-- 单项输入框结束 -->
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                <!-- 多行文本 -->
                                <?php if(isset($vo['requ']) && $vo['requ']): ?>
                                <div><?php echo htmlentities($vo['requ_str']); ?></div>
                                <textarea class="layui-textarea" disabled><?php echo htmlentities($vo['ansstr']); ?></textarea>
                                <?php endif; ?>
                                <!-- 多行文本结束 -->
                                <?php endif; ?>
                            </div>
                            <div class="layui-field-box" style="justify-content: space-between;display: flex;">
                                <div>
                                    <span class="layui-badge layui-bg-gray">多选</span>
                                    <!-- <button type="button"
                                        class="layui-btn layui-btn-primary layui-border-green layui-btn-xs" lay-submit
                                        lay-filter="addTopicAns">新增多选</button> -->
                                </div>
                                <!-- <div>
                                    <input type="checkbox" name="isb_<?php echo htmlentities($vo['id']); ?>" <?php if($vo['isb']==1): ?> checked=""
                                        <?php endif; ?> title="必填" lay-filter="isb">
                                    <button type="button" class="layui-btn layui-btn-danger delTopicbtn" lay-submit
                                        lay-filter="delTopic">删除</button>

                                </div> -->
                            </div>

                        </fieldset>
                        <?php endif; if($vo['topic_type']==3): ?>
                        <fieldset class="layui-elem-field sortItem" data-type="<?php echo htmlentities($vo['topic_type']); ?>">
                            <legend class="legendHower topic topic_<?php echo htmlentities($vo['id']); ?>" data-id="<?php echo htmlentities($vo['id']); ?>" data-type="2">
                                <?php echo isset($vo['title']) ? htmlentities($vo['title']) : '点击修改名称'; if($vo['isb']==1): ?><span style="color: red;">*</span><?php endif; ?></legend>
                            <div class="layui-field-box" id="sortAns_<?php echo htmlentities($vo['id']); ?>">
                                <input type="text" class=" layui-input" disabled value="<?php if(isset($vo['ansstr'])): ?><?php echo htmlentities($vo['ansstr']); ?><?php endif; ?>">
                            </div>
                            <div class="layui-field-box" style="justify-content: space-between;display: flex;">
                                <div>
                                    <span class="layui-badge layui-bg-gray">填空</span>
                                </div>
                                <!-- <div>
                                    <input type="checkbox" name="isb_<?php echo htmlentities($vo['id']); ?>" <?php if($vo['isb']==1): ?> checked=""
                                        <?php endif; ?> title="必填" lay-filter="isb">
                                    <button type="button" class="layui-btn layui-btn-danger delTopicbtn" lay-submit
                                        lay-filter="delTopic">删除</button>

                                </div> -->
                            </div>

                        </fieldset>
                        <?php endif; if($vo['topic_type']==4): ?>
                        <fieldset class="layui-elem-field sortItem" data-type="<?php echo htmlentities($vo['topic_type']); ?>">
                            <legend class="legendHower topic topic_<?php echo htmlentities($vo['id']); ?>" data-id="<?php echo htmlentities($vo['id']); ?>" data-type="2">
                                <?php echo isset($vo['title']) ? htmlentities($vo['title']) : '点击修改名称'; ?></legend>
                            <div class="layui-field-box">
                                <table class="layui-table" lay-size="sm" data-topicid="<?php echo htmlentities($vo['id']); ?>">
                                    <thead>
                                        <tr>
                                            <th>问题 \ 答案</th>
                                            <?php if(count($vo['child'])>0): if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ans): $mod = ($i % 2 );++$i;?>
                                            <th class="juansbox" data-id="<?php echo htmlentities($ans['id']); ?>">
                                                <div>
                                                    <span class="juans"><?php echo isset($ans['content']) ? htmlentities($ans['content']) : '点击修改'; ?></span>
                                                    <i class="layui-icon layui-icon-close deljuans"></i>
                                                </div>
                                            </th>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                            <?php endif; ?>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(count($vo['question'])>0): if(is_array($vo['question']) || $vo['question'] instanceof \think\Collection || $vo['question'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['question'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$jz): $mod = ($i % 2 );++$i;?>
                                        <tr class="jutopic_<?php echo htmlentities($vo['id']); ?>">
                                            <td class="jutopicbox" data-id="<?php echo htmlentities($jz['id']); ?>">
                                                <div>
                                                    <span class="jutopic"><?php echo isset($jz['content']) ? htmlentities($jz['content']) : '点击修改'; ?></span>
                                                    <i class="layui-icon layui-icon-close deljutopic"></i>
                                                </div>
                                            </td>
                                            <?php if(count($jz['child'])>0): if(is_array($jz['child']) || $jz['child'] instanceof \think\Collection || $jz['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $jz['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ans): $mod = ($i % 2 );++$i;?>
                                            <td><input type="radio" name="juRadio_<?php echo htmlentities($jz['id']); ?>" data-id="<?php echo htmlentities($ans['id']); ?>"
                                                    data-topic-jz-id="<?php echo htmlentities($jz['id']); ?>" <?php if(isset($ans['checked']) && $ans['checked']): ?>checked
                                                    <?php else: ?>disabled <?php endif; ?>><i
                                                    class="logiconeans layui-icon layui-icon-link"
                                                    style="color: #270dec;"></i></td>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                            <?php endif; ?>
                                        </tr>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                        <?php endif; ?>
                                    </tbody>
                                </table>
                            </div>
                            <div class="layui-field-box" style="justify-content: space-between;display: flex;">
                                <div>
                                    <span class="layui-badge layui-bg-gray">矩阵单选</span>
                                    <!-- <button type="button"
                                        class="layui-btn layui-btn-primary layui-btn-radius layui-border-green layui-btn-xs"
                                        lay-submit lay-filter="addTopicJu">新增问题</button>
                                    <button type="button"
                                        class="layui-btn layui-btn-primary layui-btn-radius layui-border-green layui-btn-xs"
                                        lay-submit lay-filter="addTopicAns">新增答案</button> -->
                                </div>
                                <!-- <div>
                                    <input type="checkbox" name="isb_<?php echo htmlentities($vo['id']); ?>" <?php if($vo['isb']==1): ?> checked=""
                                        <?php endif; ?> title="必填" lay-filter="isb">
                                    <button type="button" class="layui-btn layui-btn-danger delTopicbtn" lay-submit
                                        lay-filter="delTopic">删除</button>
                                </div> -->
                            </div>
                        </fieldset>
                        <?php endif; if($vo['topic_type']==5): ?>
                        <fieldset class="layui-elem-field sortItem" data-type="<?php echo htmlentities($vo['topic_type']); ?>">
                            <legend class="legendHower topic topic_<?php echo htmlentities($vo['id']); ?>" data-id="<?php echo htmlentities($vo['id']); ?>" data-type="2">
                                <?php echo isset($vo['title']) ? htmlentities($vo['title']) : '点击修改名称'; ?></legend>
                            <div class="layui-field-box">
                                <table class="layui-table" lay-size="sm" data-topicid="<?php echo htmlentities($vo['id']); ?>">
                                    <thead>
                                        <tr>
                                            <th>问题 \ 答案</th>
                                            <?php if(count($vo['child'])>0): if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ans): $mod = ($i % 2 );++$i;?>
                                            <th class="juansbox" data-id="<?php echo htmlentities($ans['id']); ?>">
                                                <div>
                                                    <span class="juans"><?php echo isset($ans['content']) ? htmlentities($ans['content']) : '点击修改'; ?></span>
                                                    <i class="layui-icon layui-icon-close deljuans"></i>
                                                </div>
                                            </th>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                            <?php endif; ?>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(count($vo['question'])>0): if(is_array($vo['question']) || $vo['question'] instanceof \think\Collection || $vo['question'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['question'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$jz): $mod = ($i % 2 );++$i;?>
                                        <tr class="jutopic_<?php echo htmlentities($vo['id']); ?>">
                                            <td class="jutopicbox" data-id="<?php echo htmlentities($jz['id']); ?>">
                                                <div>
                                                    <span class="jutopic"><?php echo isset($jz['content']) ? htmlentities($jz['content']) : '点击修改'; ?></span>
                                                    <i class="layui-icon layui-icon-close deljutopic"></i>
                                                </div>
                                            </td>
                                            <?php if(count($jz['child'])>0): if(is_array($jz['child']) || $jz['child'] instanceof \think\Collection || $jz['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $jz['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ans): $mod = ($i % 2 );++$i;?>
                                            <td><input type="checkbox" lay-skin="primary" name="juRadio_<?php echo htmlentities($jz['id']); ?>"
                                                    data-id="<?php echo htmlentities($ans['id']); ?>" data-topic-jz-id="<?php echo htmlentities($jz['id']); ?>" <?php if(isset($ans['checked'])&&$ans['checked']): ?>checked
                                                    <?php else: ?>disabled <?php endif; ?> ><i
                                                    class="logiconeans layui-icon layui-icon-link"
                                                    style="color: #270dec;"></i></td>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                            <?php endif; ?>
                                        </tr>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                        <?php endif; ?>
                                    </tbody>
                                </table>
                            </div>
                            <div class="layui-field-box" style="justify-content: space-between;display: flex;">
                                <div>
                                    <span class="layui-badge layui-bg-gray">矩阵多选</span>
                                    <!-- <button type="button"
                                        class="layui-btn layui-btn-primary layui-btn-radius layui-border-green layui-btn-xs"
                                        lay-submit lay-filter="addTopicJu">新增问题</button>
                                    <button type="button"
                                        class="layui-btn layui-btn-primary layui-btn-radius layui-border-green layui-btn-xs"
                                        lay-submit lay-filter="addTopicAns">新增答案</button> -->
                                </div>
                                <!-- <div>
                                    <input type="checkbox" name="isb_<?php echo htmlentities($vo['id']); ?>" <?php if($vo['isb']==1): ?> checked=""
                                        <?php endif; ?> title="必填" lay-filter="isb">
                                    <button type="button" class="layui-btn layui-btn-danger delTopicbtn" lay-submit
                                        lay-filter="delTopic">删除</button>
                                </div> -->
                            </div>
                        </fieldset>
                        <?php endif; ?>
                        <?php endif; ?>
                        <?php endforeach; endif; else: echo "" ;endif; ?>

                        <!-- 白底内 -->
                    </div>
                </div>
                <!-- 白底外 -->
            </div>

        </div>
    </form>

    <script src="/layuimini/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script src="/layuimini/js/lay-config.js?1" charset="utf-8"></script>
    <script src="/layuimini/js/Sortable.min.js" charset="utf-8"></script>
    <script>
        layui.use(['table', 'form'], function () {
            var $ = layui.jquery;
            var table = layui.table;
            var form = layui.form;




        });
    </script>
</body>

</html>